package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName orders
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 家政人员ID
     */
    private Long housekeeperId;

    /**
     * 服务项ID
     */
    private Long serviceItemId;

    /**
     * 地址ID
     */
    private Long addressId;

    /**
     * 预约服务时间
     */
    private Date serviceTime;

    /**
     * 订单金额
     */
    private BigDecimal amount;

    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;

    /**
     * 实际支付金额
     */
    private BigDecimal actualAmount;

    /**
     * 使用的优惠券ID
     */
    private Long couponId;

    /**
     * 订单状态(0:待支付,1:已支付待接单,2:已接单,3:服务中,4:已完成,5:已取消,6:已关闭)
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Integer deleted;

    @TableField(exist = false)
    private String address;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}